#include<bits/stdc++.h>
using namespace std;

int fac(int x)
{
	return x==0? 1:x*fac(x-1);
}

int main()
{
	int x;
	cin>>x;
	cout<<fac(x)<<endl;
	return 0;
}